package com.un.ebs.production.dto;

import com.un.ebs.product.enums.ProductBomTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * Add dto.
 * </p>
 *
 * @author liubo
 * @since 2020-05-25
 */
@Data
public class ProductionOrderAddDto {

    private String saleOrderId;

    private String saleOrderItemId;

    private String personnelId;

    @NotNull(message = "请指定计划完工时间")
    private Date planDeliverDate;

    @NotNull(message = "请指定计划开工日期")
    private Date planWorkDate;

    @NotNull(message = "请指定生产BOM类型。")
    private ProductBomTypeEnum bomType;

    private String remark;

    private List<ProductionOrderItemDto> items;

}